import tool
import pygame as pg
import constants as c

from state import mainmenu, level

if __name__=='__main__':

    game = tool.Control()
    state_dict = {
        c.MAIN_MENU : mainmenu.Menu(),
        c.LEVEL     : level.Level()
    }
    game.setup_states(state_dict, c.MAIN_MENU)
    game.main()
    pg.quit()